package exogwt.server;

import org.exoplatform.container.client.ClientInfo;

/**
 * @author Andriy Zhdanov
 */
public class ServiceClientInfo implements ClientInfo {
    // see org.exoplatform.container.client.http.HttpClientInfo
    private static final String DEFAULT_CLIENT_TYPE = "standard-browser";
    private static final String DEFAULT_CLIENT_NAME = "N/A";

    private String remoteUser;
    private String remoteAddress;

    public ServiceClientInfo(String remoteUser, String remoteAddress) {
        this.remoteUser = remoteUser;
        this.remoteAddress = remoteAddress;
    }

    public String getClientType() {
        return DEFAULT_CLIENT_TYPE;
    }

    public String getRemoteUser() {
        return remoteUser;
    }

    public String getIpAddress() {
        return remoteAddress;
    }

    public String getClientName() {
        return DEFAULT_CLIENT_NAME;
    }
}
